document.querySelectorAll('.expandable').forEach(function(row) {
    row.addEventListener('click', function() {
        var detailsRow = this.nextElementSibling;
        if (detailsRow.style.display === 'none') {
            detailsRow.style.display = 'table-row';
        } else {
            detailsRow.style.display = 'none';
        }
    });
});